package net.csdn.business.common.domain.request.milepost;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @ClassName: MilepostStaticDTO
 * @Description:
 * @Author: zhangyl
 * @Date: 2024/7/1 11:00
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MilepostStaticDTO implements Serializable {

    /** 搜索关键字 */
    private String keyword;
    /** 组织ID/仓库ID */
    //@NotBlank(message = "sourceId不能为空")
    private String sourceId;
    private String path;
    /** 1:组织；2:仓库 */
    @NotNull(message = "sourceType不能为空")
    @Range(min = 1, max = 2, message = "sourceType不合法")
    private Integer sourceType;


    private List<String> sourceIds;
}
